<%@ page import="com.itheima.domain.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
      <%
         //HttpSession session1 =request.getSession();
        User u =(User) session.getAttribute("u");
        if(u!=null){
      %>
        <%=u.getUsername()%>
      <a href="/user/logout">退出</a>
      <%}else{%>
      <a href="page/login.jsp">请登录</a>
        <%}%>
  </body>
</html>
